<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
		<title>电子档案管理系统</title>
		<link rel="stylesheet" href="../css/font-awesome.min.css">
		<link rel="stylesheet" href="../bootstrap-3.3.4/dist/css/bootstrap.min.css">
		<link rel="stylesheet" href="../css/common.css">
		<script src="../js/jquery-1.11.3.js"></script>
		
		<script src="../bootstrap-3.3.4\dist\js\bootstrap.min.js"></script> 
		<style type="text/css">
			body{
			    background: rgba(0,0,0,0);
			    color: #fff;
				}
			th{
				background-color: #286090;
				border: none;
				color: white;
			}
		</style>
	</head>
	<body>
	<h2>日志记录</h2>

	<form>
		<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<table class="table">
				<thead style="background: #A4D3EE;">
					<tr>
						<th>
							用户
						</th>

						<th>
							操作时间
						</th>
						<th>
							操作描述
						</th>
                        <th>
                            审核者
                        </th>
						<th>
							操作状态
						</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>


                <s:iterator value="amArchivesRequestsArrayList" >
                    <tr>
                        <td  style="vertical-align:middle"><s:property value="archivesRequestsArchiveId.getArchivesSummittedUserId().getAccountNickname()" /></td>
                        <td style="vertical-align:middle"><s:property value="startTimeString()" /></td>
                        <td style="vertical-align:middle"><s:property value="desString()" /></td>
                        <td style="vertical-align:middle"><s:property value="getArchivesRequestsArchiveApprovalUserId().getAccountNickname()" /></td>
                        <td style="vertical-align:middle"><s:property value="statusString()" /></td>

                        <s:if test="getArchivesRequestsStatus()==3">
                            <td>
                               已回滚
                            </td>
                        </s:if>
                 
                        <s:else>
                            <td >    <button type="submit" class="btn btn-default" onclick="window.location.href('${pageContext.request.contextPath }/rollback?amArchivesRequestsId=<s:property value="getArchivesRequestsId()"/>')">回滚操作</button></td>
                        </s:else>
                    </tr>
                </s:iterator>


					
				</tbody>
			</table>

</form>

	</body>
</html>